<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions targetNamespace="http://activiti.org/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_qzeZkO-rEeKjOqksimE_UQ">
  <bpmn2:process id="sevenFailingServiceTasks" name="7 Failing Service Tasks" isExecutable="true">
    <bpmn2:startEvent id="StartEvent_1" name="Start Event">
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:parallelGateway id="ParallelGateway_1" name="Parallel Gateway">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
      <bpmn2:outgoing>SequenceFlow_15</bpmn2:outgoing>
    </bpmn2:parallelGateway>
    <bpmn2:sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="ParallelGateway_1"/>
    <bpmn2:sequenceFlow id="SequenceFlow_2" sourceRef="ParallelGateway_1" targetRef="ServiceTask_1"/>
    <bpmn2:serviceTask id="ServiceTask_1" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true" name="Service Task 1">
      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_3" sourceRef="ParallelGateway_1" targetRef="ServiceTask_2"/>
    <bpmn2:serviceTask id="ServiceTask_2" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true" name="Service Task 2">
      <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_4" sourceRef="ParallelGateway_1" targetRef="ServiceTask_3"/>
    <bpmn2:serviceTask id="ServiceTask_3" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true" name="Service Task 3">
      <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_5" sourceRef="ParallelGateway_1" targetRef="ServiceTask_4"/>
    <bpmn2:serviceTask id="ServiceTask_4" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true" name="Service Task 4">
      <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_6" sourceRef="ParallelGateway_1" targetRef="ServiceTask_5"/>
    <bpmn2:serviceTask id="ServiceTask_5" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true" name="Service Task 5">
      <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_7" sourceRef="ParallelGateway_1" targetRef="ServiceTask_6"/>
    <bpmn2:serviceTask id="ServiceTask_6" activiti:class="org.camunda.bpm.pa.service.FailingDelegate" activiti:async="true" name="Service Task 6">
      <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_8" sourceRef="ServiceTask_1" targetRef="ParallelGateway_2"/>
    <bpmn2:parallelGateway id="ParallelGateway_2" name="Parallel Gateway">
      <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_13</bpmn2:incoming>
      <bpmn2:incoming>SequenceFlow_16</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>
    </bpmn2:parallelGateway>
    <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="ServiceTask_2" targetRef="ParallelGateway_2"/>
    <bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="ServiceTask_3" targetRef="ParallelGateway_2"/>
    <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="ServiceTask_4" targetRef="ParallelGateway_2"/>
    <bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="ServiceTask_5" targetRef="ParallelGateway_2"/>
    <bpmn2:sequenceFlow id="SequenceFlow_13" name="" sourceRef="ServiceTask_6" targetRef="ParallelGateway_2"/>
    <bpmn2:endEvent id="EndEvent_1" name="End Event">
      <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_14" sourceRef="ParallelGateway_2" targetRef="EndEvent_1"/>
    <bpmn2:serviceTask id="ServiceTask_7" activiti:class="org.camunda.bpm.pa.service.NullPointerFailingDelegate" activiti:async="true" name="Service Task 7">
      <bpmn2:incoming>SequenceFlow_15</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_16</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="SequenceFlow_15" name="" sourceRef="ParallelGateway_1" targetRef="ServiceTask_7"/>
    <bpmn2:sequenceFlow id="SequenceFlow_16" name="" sourceRef="ServiceTask_7" targetRef="ParallelGateway_2"/>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Multipe Failing Service Tasks">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="multipleFailingServiceTasks">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="109.0" y="387.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_2" bpmnElement="ParallelGateway_1">
        <dc:Bounds height="50.0" width="50.0" x="195.0" y="380.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_2" targetElement="_BPMNShape_ParallelGateway_2">
        <di:waypoint xsi:type="dc:Point" x="145.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="195.0" y="405.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_2" bpmnElement="ServiceTask_1">
        <dc:Bounds height="80.0" width="100.0" x="360.0" y="96.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_2">
        <di:waypoint xsi:type="dc:Point" x="220.0" y="380.0"/>
        <di:waypoint xsi:type="dc:Point" x="220.0" y="136.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="136.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="220.0" y="355.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_3" bpmnElement="ServiceTask_2">
        <dc:Bounds height="80.0" width="100.0" x="360.0" y="240.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_3">
        <di:waypoint xsi:type="dc:Point" x="245.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="302.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="302.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="280.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="270.0" y="405.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_4" bpmnElement="ServiceTask_3">
        <dc:Bounds height="80.0" width="100.0" x="360.0" y="365.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_4">
        <di:waypoint xsi:type="dc:Point" x="245.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="405.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="270.0" y="405.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_5" bpmnElement="ServiceTask_4">
        <dc:Bounds height="80.0" width="100.0" x="360.0" y="504.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_5">
        <di:waypoint xsi:type="dc:Point" x="220.0" y="430.0"/>
        <di:waypoint xsi:type="dc:Point" x="220.0" y="544.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="544.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="220.0" y="505.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_6" bpmnElement="ServiceTask_5">
        <dc:Bounds height="80.0" width="100.0" x="360.0" y="624.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_6">
        <di:waypoint xsi:type="dc:Point" x="220.0" y="430.0"/>
        <di:waypoint xsi:type="dc:Point" x="220.0" y="664.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="664.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="220.0" y="605.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_7" bpmnElement="ServiceTask_6">
        <dc:Bounds height="80.0" width="100.0" x="360.0" y="744.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_7">
        <di:waypoint xsi:type="dc:Point" x="220.0" y="430.0"/>
        <di:waypoint xsi:type="dc:Point" x="220.0" y="784.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="784.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="220.0" y="655.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_3" bpmnElement="ParallelGateway_2">
        <dc:Bounds height="50.0" width="50.0" x="576.0" y="380.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="22.0" width="104.0" x="549.0" y="435.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ServiceTask_2" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460.0" y="136.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="136.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="576.0" y="405.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="485.0" y="136.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ServiceTask_3" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="576.0" y="405.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ServiceTask_4" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="576.0" y="405.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ServiceTask_5" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460.0" y="544.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="544.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="576.0" y="405.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_ServiceTask_6" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460.0" y="664.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="664.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="576.0" y="405.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_ServiceTask_7" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460.0" y="784.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="784.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="576.0" y="405.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_2" bpmnElement="EndEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="676.0" y="387.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_ParallelGateway_3" targetElement="_BPMNShape_EndEvent_2">
        <di:waypoint xsi:type="dc:Point" x="626.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="676.0" y="405.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_8" bpmnElement="ServiceTask_7">
        <dc:Bounds height="80.0" width="100.0" x="360.0" y="876.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="SequenceFlow_15" sourceElement="_BPMNShape_ParallelGateway_2" targetElement="_BPMNShape_ServiceTask_8">
        <di:waypoint xsi:type="dc:Point" x="220.0" y="430.0"/>
        <di:waypoint xsi:type="dc:Point" x="220.0" y="916.0"/>
        <di:waypoint xsi:type="dc:Point" x="360.0" y="916.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_16" bpmnElement="SequenceFlow_16" sourceElement="_BPMNShape_ServiceTask_8" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="460.0" y="916.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="916.0"/>
        <di:waypoint xsi:type="dc:Point" x="518.0" y="405.0"/>
        <di:waypoint xsi:type="dc:Point" x="576.0" y="405.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
